<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**  Page **/
class Page extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		$this->load->model("posts");
		$this->load->model("policiess");
		$this->load->helper('text');
	}
	
	public function html($html)
	{
		$value['title']  = $html;
		$value['files']  = $this->policiess->getAllFileRecords($html);
		$value['news']	 = $this->posts->getAllRecords(1,10,'now');
		$value['info']	 = $this->posts->getAllRecords(2,5);
		$value['latest'] = $this->posts->getAllRecords(1,5,'now');
		$value['latest2']= $this->posts->getAllRecords(2,5);
		$value['content']= "vpage/".$html;
		$this->load->view('themes/bdo/index',$value);
	}
}

/* End of file page.php */
/* Location: ./application/controllers/page.php */